package com.mydesignpattern.beijing.responsibilitychain.simple.impl;

import com.mydesignpattern.beijing.responsibilitychain.simple.Filter;

/**
 * 处理html标签的实现类
 * Created by nevermore on 17/4/25.
 */
public class HtmlFilter implements Filter {
    @Override
    public String doFilter(String msg) {
        //以"<>"替换为"[]"代替
        return msg.replace("<", "[").replace(">", "]");
    }
}
